package hw04.grammar.productions;

import java.util.List;

import hw04.Answers;
import hw04.grammar.Executable;
import hw04.grammar.terminals.Period;

public class Fact implements Executable {
	
	private EDB value;
	
	public Fact(EDB value, Period _) {
		setValue(value);
	}

	public EDB getValue() {
		return value;
	}

	public void setValue(EDB value) {
		this.value = value;
	}

	@Override
	public String toString() {
		return getClass().getSimpleName() + ":" + getValue().toString();
	}

	@Override
	public void execute() {
		Answers.addFact(this);
	}
	
}
